/*
--------------------------------------------------------------------------------
				Ak-Lib. 
			 Project       	: Ak-Lib
			 Group         	: Ak-Lib R&D Team
			 Author        	: Ocean.Wang
			 Create Date 	: 05-01-2010
--------------------------------------------------------------------------------
Code Name 	:  A.K 	~v~
Description	:  Yet Another Cross-Platform Lib.
Cautions    	:
--------------------------------------------------------------------------------
Change History:
Version		: 0.1
Building 		: 05/01/10
10-05.01 first draft, build, debug and test.
--------------------------------------------------------------------------------
*/
#ifndef	_INC_AK_SQLITE_
#define	_INC_AK_SQLITE_

#include "ak_types.h"

#ifdef __cplusplus
extern "C" {
#endif

/* SQLite Blob */
typedef struct{
	const char 	* 	sql;
	int 			qFid;		/* Query Field */
	void 		* 	qBlob;
	int 			lBlob;
	
	int 			rFid;		/* Ret Field */
	int 	(	* 	cbFunc)();
}_t_sqlite_blob;

/* SQLite Exec */
typedef struct{
	const char 	* 	sql;
	void 		* 	pArg;
	int 	(	* 	cbFunc)();
}_t_sqlite_exec;



extern	void * 	SSqlite_Open(const char * hFile);
extern	int 	SSqlite_Close(void * hDb);

extern	int 	SSqlite_Prepare(void * hDb, const char * hSql, void ** ppStmt);
extern	int 	SSqlite_Blob(void * hDb, _t_sqlite_blob * sBlob);
extern	int 	SSqlite_Exec(void * hDb, _t_sqlite_exec * sExec);


#ifdef __cplusplus
}
#endif


#endif



